﻿<!--{inc(header.view.html)}-->


<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">

									 
                                                 <li><a href="#"  class="nav_icon"  target="mainframe"  target="mainframe">{$modulename}分类列表</a></li>
                                                 <li><a href="index.php?app={$appname}&act=cagryadd" target="mainframe">{$modulename}分类增加</a></li>
	                                 </ul>												 
									 
									 
									 
									 
                       </div>
                
</div>



<div id="content">
                   <h1>{$modulename}分类列表</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>


     
<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center"  class="table_style">
<tbody>
<tr>
	<td  class="bold" width="40px" align="center" >ID</td>
	<td width="50%" class="bold">分类名称</td>
	<td class="bold">排序</td>    
	<td class="bold">操作</td>
</tr>

 <?php foreach((array)$catgydata as $_key => $_value ) { ?>

<tr  onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	<td  align="center">
	{$_value.cat_id}

	</td>
  
       
	<td  <?php if ($_value.parent_id=='0') { ?>style="font-weight:bold;"<?php } ?> > <a href="?app=$appname&act=index&cat={$_value.cat_id}" target="_blank">&nbsp;{$_value.str_pad}{$_value.cat_name}</a></td>

        
 	<td><input type="text" maxlength="3" style="width: 40px; text-align: center;" value="{$_value.sort_order}" name="sort"  onchange="ato_url('index.php?app={$appname}&act=lcsort&id={$_value.cat_id}',this);">
</td>
   
	<td>
    
     <a href="#" id="op_{$_key}" onMouseOver="show_menu('op_{$_key}','opdiv_{$_key}','show','left')" onMouseOut="show_menu('op_{$_key}','opdiv_{$_key}','hide','left')"><img src="{$web_view_dir}style/images/menu_edit.gif" align="absmiddle" border="0" /></a>	                                           <div id="opdiv_{$_key}" class="operate operate_common">
	                                            <a href="?app={$appname}&act=editcatgy&id={$_value.cat_id}" target="mainframe">修改</a>
	                                            <a href="?app={$appname}&act=delcatgy&id={$_value.cat_id}" onClick="return confirm('确认删除此项？此操作无法恢复！');">删除</a>
	                                           </div>
                                              
	                                       
	</td>
</tr>

<?php } ?> 



</tbody>
</table>
                        
    
    

                 </div>

</div>



<!--{inc(footer.view.html)}-->